/*
 * @Description: 常量和数据字典
 * @Version: 1.0
 * @Autor: caiyang
 * @Date: 2020-06-04 08:36:18
 * @LastEditors: caiyang caiyang90@163.com
 * @LastEditTime: 2022-08-22 17:41:23
 */
const commonConstants = {}

commonConstants.systemParam = [
  { value: 'userId', label: '用户id', type: 'number', column: 'user_id' },
  { value: 'userName', label: '用户账号', type: 'String', column: 'user_name' },
  { value: 'roleId', label: '角色id', type: 'number', column: 'role_id' },
  { value: 'merchantNo', label: '商户号', type: 'String', column: 'merchant_id' },
  { value: 'deptId', label: '部门id', type: 'number', column: 'dept_id' }
]

//codemirror参数配置
commonConstants.cmOptions = {
  smartIndent: true, //智能缩进
  indentUnit: 4, // 智能缩进单元长度为 4 个空格
  matchBrackets: true, //每当光标位于匹配的方括号旁边时，都会使其高亮显示
  autofocus: true,
  showCursorWhenSelecting: true,
  autoRefresh: true,
  tabSize: 4,
  foldGutter: true,
  styleActiveLine: true,
  lineNumbers: true,
  line: true,
  keyMap: 'sublime',
  mode: 'sql',
  theme: 'eclipse',
  lineWrapping: true
}

export default commonConstants
